<template>
  <div class="about">
    <h1>This is an about page</h1>
  </div>
  <div>
    <CodeEditor :value="value" :handle-change="handleChange" />
  </div>
</template>
<script setup lang="ts">
import CodeEditor from "@/components/CodeEditor.vue";
import { ref } from "vue";

const value = ref("");
const handleChange = (v: string) => {
  value.value = v;
  console.log("父组件中value的值为：" + value.value);
};
</script>
